package com.sanyang.lawyer.service.client;


import com.sanyang.lawyer.entity.Case_message;
import com.sanyang.lawyer.entity.Client_message;
import com.sanyang.lawyer.mapper.client.Client_messageMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class Client_messageService {
    
    @Autowired
    private Client_messageMapper messageMapper;


    //通过客户编号查询
    public Client_message getbyid(int messageid){
        return messageMapper.getbymessageid(messageid);
    }
    //查询所有
    public List<Client_message> listall(){
        return messageMapper.listall();
    }
    
    //添加数据
    public int insertOne(Client_message message){
        return messageMapper.insertOne(message);
    }
    
}
